package com.rednote.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 用户点赞记录表(UserLikes)实体类
 *
 * @author yao suxuan
 * @since 2025-05-24 18:10:29
 */
@Data
@TableName("user_likes")
public class UserLikes {
    /**
     * 点赞记录ID
     */
    private Long likeId;
    /**
     * 点赞用户ID
     */
    private Integer userId;
    private Integer targetId;     // 被点赞的帖子或评论 ID
    private Integer targetType; // 0 帖子，1 评论
    /**
     * 点赞时间
     */
    private Date createdAt;
}
